package SerializationUtils;

import com.google.common.collect.Maps;
import org.springframework.util.SerializationUtils;

import java.util.HashMap;

/**
 * @program: pangu
 * @description:
 * @author: fengjd
 * @create: 2022-06-23 09:59
 **/
public class SerializationUtilsTest {

    public static void main(String[] args) {

        HashMap<Object, Object> map = Maps.newHashMap();
        map.put("a","1");
        map.put("b","2");
        map.put("c","3");
        byte[] serialize = SerializationUtils.serialize(map);
        Object deserialize = SerializationUtils.deserialize(serialize);
        System.out.println(deserialize);

    }
}
